<style>
.lt_css th{height:35px;background-color:#F0F6FF;cursor:pointer}
.disClc{background:#FCF9CE;margin:5px;padding:2px 5px 2px 5px}
.onClc{background:#D9DC00;}
</style>
<script type="text/javascript">
var _lotto_id = {lotto_id};

// 表格
$(function(){
  $("div#mainPageData").hide();
  $("div#errormsg").text("赔率更新中...请稍等...");

  // 取得赔率资料
  $().getR1data(_lotto_id,_gametype);
  
  // 切换赔率
  $("select#slcDisk").change(function(){
    $("input#disk").attr("value",$("select#slcDisk option:selected").val());
    $().getR1data(_lotto_id,_gametype);
  });
  
  $("span[id^=setMyNum] input:button").click(function(){
      var timebtnType = $("input:hidden#timebtnType").val();
      var setMyNumVal = "*";
      var subName = $(this).parent("span").attr("id").substr(9);
      var tbdStr = "tbody#tbdrr" + subName + " input:" + timebtnType;
      $(tbdStr).val("");
      $(tbdStr).disBckColor();     
      switch($(this).index()){
      case 0: // 大
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 10) > 4;
      }).val("*").chgBckColor();
      break;
      case 1: // 小
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 10) < 5;
      }).val("*").chgBckColor();
      break;
      case 2: // 单
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 2 == 1);
      }).val("*").chgBckColor();
      break;
      case 3: // 双
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 2 == 0);
      }).val("*").chgBckColor();
      
      break;
      case 4: // 质  1, 2, 3, 5, 7
      $(tbdStr).filter(function(idx,ele){
        var myN = $(ele).attr("name").split("_");
        if(myN[1] == 0){return false;}else if((myN[1] % 10 == 1) || (myN[1] % 10 == 2) || (myN[1] % 10 == 3)|| (myN[1] % 10 == 5) || (myN[1] % 10 == 7) ){return true;}else{return false;}
        }).val("*").chgBckColor();
      break;
      case 5: // 合  0, 4, 6, 8, 9
      $(tbdStr).filter(function(idx,ele){
        var myN = $(ele).attr("name").split("_");
        if(myN[1] == 0){return true;}else if((myN[1] % 10 == 0) || (myN[1] % 10 == 4) || (myN[1] % 10 == 6)|| (myN[1] % 10 == 8) || (myN[1] % 10 == 9) ){return true;}else{return false;}
        }).val("*").chgBckColor();
      break;
      case 6: // 取消
      
      break;
    }
    if(timebtnType=="checkbox"){
	  $("tbody#tbdrr" + subName + " input:checkbox[name^='r']:checked").parent().removeClass("k1");
	  $("tbody#tbdrr" + subName + " input:checkbox[name^='r'][value='*']").parent().addClass("k1");
      $("tbody#tbdrr" + subName + " input:checkbox[name^='r']:checked").removeAttr("checked");
      $("tbody#tbdrr" + subName + " input:checkbox[name^='r'][value='*']").attr("checked","checked");
    }
    
  });
  
  // 取消
  $("input:reset").click(function(){
    var timebtnType = $("input:hidden#timebtnType").val();
    $("tbody input:" + timebtnType).disBckColor();     
  });
  
//路途
  $(".disClc").bind("click",function(b){
		var row=$(this).attr("tag");
		$("#lt_table tr[class='td2']").hide();
		$(".onClc").removeClass("onClc");
		$(this).addClass("onClc");
		$("#lt_tr_"+row).show();
	});
	$("input[type=reset]").bind("click",function(){$(".k1").removeClass("k1");});
});





</script>
<div id="errormsg"></div>
<div id="mainPageData">
<form action="{action}" method="post" style="margin-top:0" >
<input type="hidden" value="{bettypegroup}" name="bettypegroup" />
<input type="hidden" value="{timebtnType}" name="timebtnType" id="timebtnType" />
<input type="hidden" value="" name="disk" id="disk" />


<table class="tblMy3D" width="700" id="tblNowBet00">
<thead>
<tr class="bgClc_{gametype}" style="font-weight: bold;">
<td colspan="15" align="right">
  ◎&nbsp;&nbsp;一字不定位快选
  <span id="setMyNum00" style="padding-left:100px;">
  <input type="button" value="大" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="小" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="单" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="双" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="质" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="合" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="取消" class="colorBtn01 clrBrd_{gametype}" />  
  </span>
</td>
</tr>

<tr class="td2" style="font-weight: 100;">
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
</tr>
</thead>
<tbody id="tbdrr0">
<tr class="td2" align="center"></tr>
<tr class="td2" align="center"></tr>
</tbody>
</table>

<br />

<table class="tblMy3D" width="700" id="tblNowBet01">
<thead>
<tr class="bgClc_{gametype}" style="font-weight: bold;">
<td colspan="15" align="right">
  ◎&nbsp;&nbsp;佰定位&nbsp;&nbspOXX&nbsp;&nbsp快选
  <span id="setMyNum01" style="padding-left:100px;">
  <input type="button" value="大" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="小" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="单" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="双" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="质" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="合" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="取消" class="colorBtn01 clrBrd_{gametype}" />  
  </span>
</td>
</tr>

<tr class="td2" style="font-weight: 100;">
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
</tr>
</thead>
<tbody id="tbdrr1">
<tr class="td2" align="center"></tr>
<tr class="td2" align="center"></tr>
</tbody>
</table>

<br />

<table class="tblMy3D" width="700" id="tblNowBet02">
<thead>
<tr class="bgClc_{gametype}" style="font-weight: bold;">
<td colspan="15" align="right">
  ◎&nbsp;&nbsp;拾定位&nbsp;&nbspXOX&nbsp;&nbsp快选
  <span id="setMyNum02" style="padding-left:100px;">
  <input type="button" value="大" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="小" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="单" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="双" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="质" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="合" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="取消" class="colorBtn01 clrBrd_{gametype}" />  
  </span>
</td>
</tr>

<tr class="td2" style="font-weight: 100;">
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
</tr>
</thead>
<tbody id="tbdrr2">
<tr class="td2" align="center"></tr>
<tr class="td2" align="center"></tr>
</tbody>
</table>

<br />

<table class="tblMy3D" width="700" id="tblNowBet03">
<thead>
<tr class="bgClc_{gametype}" style="font-weight: bold;">
<td colspan="15" align="right">
  ◎&nbsp;&nbsp;个定位&nbsp;&nbspXXO&nbsp;&nbsp快选
  <span id="setMyNum03" style="padding-left:100px;">
  <input type="button" value="大" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="小" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="单" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="双" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="质" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="合" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="取消" class="colorBtn01 clrBrd_{gametype}" />  
  </span>
</td>
</tr>

<tr class="td2" style="font-weight: 100;">
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
</tr>
</thead>
<tbody id="tbdrr3">
<tr class="td2" align="center"></tr>
<tr class="td2" align="center"></tr>
</tbody>
</table>



<div class="btnDivArea">
  金额
  <input type="text" value="" id="setMomney" size="3" />
  <input type="button" id="btnSetMyNum" value="转送" />
  <input type="submit" value="确定" />
  <input type="reset" value="取消" />
</div>
</form> 
</div>
</div>
<div>
{lt_table}
</div>   